//
//  EndRelationShipViewController.m
//  uniquelove
//
//  Created by ibokan on 14-12-15.
//  Copyright (c) 2014年 ibokan. All rights reserved.
//

#import "EndRelationShipViewController.h"
#import "AFNetworking.h"
@interface EndRelationShipViewController ()

@end

@implementation EndRelationShipViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
    manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];
    NSString *token = (NSString *)[[NSUserDefaults standardUserDefaults]objectForKey:@"accessToken"];
    NSString *userID = (NSString *)[[NSUserDefaults standardUserDefaults]objectForKey:@"userID"];
	NSDictionary *dic = @{@"access_token": token,@"uid":userID};
    
    //结束关系
    [manager GET:@"http://lovemyqq.sinaapp.com/endRelation.php" parameters:dic success:^(AFHTTPRequestOperation *operation, id responseObject) {
        NSLog(@"%@",responseObject);
        
    } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
        NSLog(@"%@",error);
    }];
}



@end
